<ion-header>
    <ion-toolbar color="primary">
        <ion-buttons slot="start">
            <ion-back-button defaultHref="home"></ion-back-button>
        </ion-buttons>
        <ion-title>我的收藏</ion-title>
    </ion-toolbar>
</ion-header>

<ion-content>
    <ion-refresher (ionRefresh)="doDownRefresh($event)">
        <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="正在加载数据...">
        </ion-refresher-content>
    </ion-refresher>

    <ion-list>
        <ion-item *ngIf="items.length == 0">
            <span style="width:200px;text-align:center;color:Red;margin: 0px auto">暂无数据</span>
        </ion-item>
        <ion-item *ngFor="let item of items;let i=index" (click)="goToDetails(item.ifileid,item.itype)">
            {{i+1}}.{{item.cname}}
            <p slot="end">{{item.dcreator | date:"yyyy-MM-dd"}}</p>
        </ion-item>
    </ion-list>

    <ion-infinite-scroll (ionInfinite)="doUpRefresh($event)">
        <ion-infinite-scroll-content loadingText="正在加载数据" loadingSpinner="bubbles"></ion-infinite-scroll-content>
    </ion-infinite-scroll>
</ion-content>